<?php
include '../mgm_application.php';
$mgmApps = new mgmApps();
$mgmApps->DBconnect();

$urlname = $_POST['urlname'];

$query = "SELECT COUNT(url_name) as countSubcribe FROM mgm_users WHERE url_name ='".$urlname."' ";
$result = mysql_query($query);
$row = mysql_fetch_array($result);

if ($row['countSubcribe'] > 0) {
	$result = '0';
} else {
	$result = '1';
}

echo $result;



?>